package com.example.fruitdemo.config;

import org.springframework.context.annotation.Configuration;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;




@Configuration
public class BootConfig extends WebMvcConfigurationSupport {

    /**
     * 扩展MVC框架的消息
     * @param converters
     */
//    @Override
//    protected void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
//    //创建消息转换器
//        MappingJackson2CborHttpMessageConverter messageConverter=new MappingJackson2CborHttpMessageConverter();
//    //添加自己的转化器
//    messageConverter.setObjectMapper(new JacksonObjectMapper());
//    //注册进去
//       converters.add(0,messageConverter);
//   }

    }


//    @Override
//    protected void addInterceptors(InterceptorRegistry registry) {
//         registry.addInterceptor(new LoginInterceptor()
//         ).addPathPatterns("index.html");
//    }
    //user_center_order.html,user_center_site.html,cart.html

